package com.arsn.myf.system.excel;

import com.arsn.myf.common.excel.ExcelImporter;
import com.arsn.myf.system.service.UserService;
import lombok.RequiredArgsConstructor;
import java.util.List;

/**
 * 用户数据导入类
 * @author zhongrj
 * @date 2022-12-11
 */
@RequiredArgsConstructor
public class UserImporter implements ExcelImporter<UserExcel> {

	private final UserService service;
	private final Boolean isCovered;

	/**
	 * 用户excel 导入
	 * @param data
	 */
	@Override
	public void save(List<UserExcel> data) {
		service.importUser(data, isCovered);
	}
}
